package gentle.constant;

/**
 * 返回状态码
 *
 * @author ruoyi
 */
public class HttpStatus {
    /**
     * 操作成功
     */
    public static int SUCCESS = 0;

    /**
     * 对象创建成功
     */
    public static int CREATED = 201;

    /**
     * 请求已经被接受
     */
    public static int ACCEPTED = 202;

    /**
     * 操作已经执行成功，但是没有返回数据
     */
    public static int NO_CONTENT = 204;

    /**
     * 资源已被移除
     */
    public static int MOVED_PERM = 301;

    /**
     * 重定向
     */
    public static int SEE_OTHER = 303;

    /**
     * 资源没有被修改
     */
    public static int NOT_MODIFIED = 304;

    /**
     * 参数列表错误（缺少，格式不匹配）
     */
    public static int BAD_REQUEST = 400;

    /**
     * 未授权
     */
    public static int UNAUTHORIZED = 401;

    /**
     * 访问受限，授权过期
     */
    public static int FORBIDDEN = 403;

    /**
     * 资源，服务未找到
     */
    public static int NOT_FOUND = 404;

    /**
     * 不允许的http方法
     */
    public static int BAD_METHOD = 405;

    /**
     * 资源冲突，或者资源被锁
     */
    public static int CONFLICT = 409;

    /**
     * 不支持的数据，媒体类型
     */
    public static int UNSUPPORTED_TYPE = 415;

    /**
     * 系统内部错误
     */
    public static int ERROR = 500;

    /**
     * 接口未实现
     */
    public static int NOT_IMPLEMENTED = 501;

    public static int getSUCCESS() {
        return SUCCESS;
    }

    public static void setSUCCESS(int SUCCESS) {
        HttpStatus.SUCCESS = SUCCESS;
    }

    public static int getCREATED() {
        return CREATED;
    }

    public static void setCREATED(int CREATED) {
        HttpStatus.CREATED = CREATED;
    }

    public static int getACCEPTED() {
        return ACCEPTED;
    }

    public static void setACCEPTED(int ACCEPTED) {
        HttpStatus.ACCEPTED = ACCEPTED;
    }

    public static int getNoContent() {
        return NO_CONTENT;
    }

    public static void setNoContent(int noContent) {
        NO_CONTENT = noContent;
    }

    public static int getMovedPerm() {
        return MOVED_PERM;
    }

    public static void setMovedPerm(int movedPerm) {
        MOVED_PERM = movedPerm;
    }

    public static int getSeeOther() {
        return SEE_OTHER;
    }

    public static void setSeeOther(int seeOther) {
        SEE_OTHER = seeOther;
    }

    public static int getNotModified() {
        return NOT_MODIFIED;
    }

    public static void setNotModified(int notModified) {
        NOT_MODIFIED = notModified;
    }

    public static int getBadRequest() {
        return BAD_REQUEST;
    }

    public static void setBadRequest(int badRequest) {
        BAD_REQUEST = badRequest;
    }

    public static int getUNAUTHORIZED() {
        return UNAUTHORIZED;
    }

    public static void setUNAUTHORIZED(int UNAUTHORIZED) {
        HttpStatus.UNAUTHORIZED = UNAUTHORIZED;
    }

    public static int getFORBIDDEN() {
        return FORBIDDEN;
    }

    public static void setFORBIDDEN(int FORBIDDEN) {
        HttpStatus.FORBIDDEN = FORBIDDEN;
    }

    public static int getNotFound() {
        return NOT_FOUND;
    }

    public static void setNotFound(int notFound) {
        NOT_FOUND = notFound;
    }

    public static int getBadMethod() {
        return BAD_METHOD;
    }

    public static void setBadMethod(int badMethod) {
        BAD_METHOD = badMethod;
    }

    public static int getCONFLICT() {
        return CONFLICT;
    }

    public static void setCONFLICT(int CONFLICT) {
        HttpStatus.CONFLICT = CONFLICT;
    }

    public static int getUnsupportedType() {
        return UNSUPPORTED_TYPE;
    }

    public static void setUnsupportedType(int unsupportedType) {
        UNSUPPORTED_TYPE = unsupportedType;
    }

    public static int getERROR() {
        return ERROR;
    }

    public static void setERROR(int ERROR) {
        HttpStatus.ERROR = ERROR;
    }

    public static int getNotImplemented() {
        return NOT_IMPLEMENTED;
    }

    public static void setNotImplemented(int notImplemented) {
        NOT_IMPLEMENTED = notImplemented;
    }
}
